package com.ews.onlineexchange.model.assess;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.ManyToOne;
import javax.validation.constraints.NotNull;

import com.ews.onlineexchange.enumType.RecordStatus;
import com.ews.onlineexchange.model.DataEntity;
import com.ews.onlineexchange.model.User;

@Entity
public class AssessRecordOperation extends DataEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private AssessRecord assessRecord;   //信用记录
	private User opUser;    
	private RecordStatus recordStatus;  //修改的状态
	
	@NotNull
	@ManyToOne
	public AssessRecord getAssessRecord() {
		return assessRecord;
	}
	public void setAssessRecord(AssessRecord assessRecord) {
		this.assessRecord = assessRecord;
	}
	
	@NotNull
	@ManyToOne
	public User getOpUser() {
		return opUser;
	}
	public void setOpUser(User opUser) {
		this.opUser = opUser;
	}
	
	@NotNull
	@Enumerated(EnumType.STRING)
	public RecordStatus getRecordStatus() {
		return recordStatus;
	}
	public void setRecordStatus(RecordStatus recordStatus) {
		this.recordStatus = recordStatus;
	}
	
	
	
}
